package com.gr.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Phone implements Serializable {
    private Integer id;
    private String name;
    private BigDecimal price;
    private Integer state;
    private Integer bid;
    private Brand brand;

    public Phone(Integer id, String name, BigDecimal price, Integer state, Integer bid) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.state = state;
        this.bid = bid;
    }
}
